import role from './role'

const menu = [
    {
        label: "商品",
        name: "mall",
        icon: "ShoppingOutlined",
        show: true,
        auth: [role[0].id, role[1].id]
    },
    {
        label: "订单",
        name: "order",
        icon: "ReconciliationOutlined",
        show: true,
        auth: [role[0].id, role[1].id]
    },
    {
        label: "营销",
        name: "marketing",
        icon: "SolutionOutlined",
        show: true,
        auth: [role[0].id, role[1].id]
    },
    {
        label: "权限",
        name: "security",
        icon: "SecurityScanOutlined",
        show: true,
        auth: [role[0].id],
        children: [
            {
                label: "用户列表",
                name: "user",
                icon: "TeamOutlined",
                show: true,
                auth: [role[0].id]
            },
            {
                label: "角色列表",
                name: "role",
                icon: "TagsOutlined",
                show: true,
                auth: [role[0].id]
            },
            {
                label: "菜单列表",
                name: "menu",
                icon: "UnorderedListOutlined",
                show: true,
                auth: [role[0].id]
            },
            {
                label: "资源列表",
                name: "src",
                icon: "FileTextOutlined",
                show: true,
                auth: [role[0].id]
            }
        ]
    }
]

export default menu